<?php
if (!isset($e)) : $e = null; endif;
if ($e) :
?>
<!DOCTYPE html>
<html lang=en>
    <head>
        <meta charset="utf-8">
        <title>Error <?php echo $e->getCode(); ?> !!!</title>
    </head>
    <body>
        <b><?php echo $e->getCode(); ?>.</b>
        <?php echo $e->getMessage(); ?>
        <pre style="margin: 10px 0 0 0"><?php echo $e->getTraceAsString(); ?></pre>
        <?php
        if (LIGHT_DEBUG) :
            require LIGHT_PROJECT_PATH . '/public/debug.php';
        endif;
        ?>
    </body>
</html>
<?php endif; ?>